package com.wmm.fast.persistence;

import com.wmm.common.annotations.MybatisRepository;
import com.wmm.common.persistence.CrudMapper;
import com.wmm.fast.domain.Product;
import org.apache.ibatis.annotations.Param;

@MybatisRepository
public interface ProductMapper extends CrudMapper<Product> {


    int consumeStock(@Param("productId") Long id);
}
